15. Troubleshooting

15.1 First Checks

Start with:

Kopieren
kubectl -n ix25 get pods
kubectl -n ix25 get events --sort-by=.lastTimestamp
kubectl -n ix25 get ingressroutes.traefik.io
kubectl -n ix25 get middlewares.traefik.io
helm status ix25 -n ix25

Inspect release values and manifests:

Kopieren
helm get values ix25 -n ix25
helm get manifest ix25 -n ix25

15.2 Pods Stuck in Init

IX25 workloads use wait init containers for dependencies such as PostgreSQL, Keycloak, NATS, Vault, and RustFS.

Inspect the pod:

Kopieren
kubectl -n ix25 describe pod <pod-name>
kubectl -n ix25 logs <pod-name> -c wait-postgres

Common causes:

  • dependency is not healthy

  • external host or port is wrong

  • credentials are missing or invalid

  • Vault is sealed

  • dependency values are inconsistent

15.3 Studio CLI Initialization Job

The Studio CLI initializer should run once and reach Complete. Its name includes a configuration hash and Kubernetes removes it after components.studioBackend.cliInit.ttlSecondsAfterFinished seconds.

Kopieren
kubectl -n ix25 get jobs -l app.kubernetes.io/component=studio-cli-init
kubectl -n ix25 describe job <studio-cli-init-job-name>
kubectl -n ix25 logs job/<studio-cli-init-job-name> -c wait-studio
kubectl -n ix25 logs job/<studio-cli-init-job-name> -c studio-cli-init

Check Studio health, CLI image access, keycloak.serviceClient.*, the effective Keycloak token endpoint, and Studio gRPC port 50051. The Job performs no separate Keycloak readiness check; transient CLI failures are retried up to cliInit.backoffLimit. If the TTL already removed the Job, use centralized logs or temporarily increase the TTL and change the CLI initialization configuration before upgrading again.

15.4 Image Pull Failures

For ImagePullBackOff or ErrImagePull:

Kopieren
kubectl -n ix25 describe pod <pod-name>
kubectl -n ix25 get secret quay-pull-secret

Check global.imagePullSecrets, image repositories, tags, and cluster egress to the registry.

15.5 Ingress and Main URL Issues

Check:

Kopieren
kubectl -n ix25 get ingressroutes.traefik.io
kubectl -n ix25 get svc
kubectl -n ix25 get endpoints
kubectl -n ix25 get secret ix25-tls
kubectl get crd ingressroutes.traefik.io middlewares.traefik.io

Verify DNS, TLS Secret name, Traefik CRDs, and backend Service endpoints.

15.6 Keycloak Issues

Check:

Kopieren
kubectl -n ix25 get pods
kubectl -n ix25 logs deployment/ix25-keycloak --tail=200
kubectl -n ix25 port-forward deployment/ix25-keycloak 9081:9081
curl -f http://127.0.0.1:9081/auth/health/ready

Common causes:

  • PostgreSQL unavailable

  • admin Secret missing or wrong

  • realm initialization problem

  • storage or config issue

15.7 Vault Issues

Check:

Kopieren
kubectl -n ix25 logs deployment/ix25-vault --tail=200
kubectl -n ix25 get secret ix25-vault-credentials
kubectl -n ix25 get jobs

If bundled Vault was restored without <release>-vault-credentials, it may remain sealed. Restore that Secret from backup.

15.8 PostgreSQL Issues

Check:

Kopieren
kubectl -n ix25 logs statefulset/ix25-postgres --tail=200
kubectl -n ix25 describe pod ix25-postgres-0

If kubectl logs fails with an error similar to this, fix the cluster proxy configuration before investigating PostgreSQL logs:

Kopieren
proxyconnect tcp: proxy error ... while dialing <proxy-host>:<proxy-port>, code 502: 502 Bad Gateway

This means the Kubernetes API server tried to reach the node kubelet through the configured HTTP proxy. Configure NO_PROXY for the Kubernetes runtime or control-plane service to include localhost, all node IPs and hostnames, the service CIDR, the pod CIDR, .svc, and .cluster.local. On K3s, update /etc/systemd/system/k3s.service.env and, for agent nodes, /etc/systemd/system/k3s-agent.service.env, then restart the affected services.

Common causes:

  • invalid credentials

  • PVC provisioning or mount failure

  • storage capacity issue

  • data corruption

If corruption is suspected, stop routine troubleshooting and follow disaster recovery procedures.

15.9 NATS Issues

Kopieren
kubectl -n ix25 logs statefulset/ix25-nats --tail=200
kubectl -n ix25 describe pod ix25-nats-0

Check PVC status, config mounts, and whether applications expect bundled NATS.

15.10 File Storage and RustFS Issues

Kopieren
kubectl -n ix25 logs statefulset/ix25-rustfs --tail=200
kubectl -n ix25 logs deployment/ix25-file-storage --tail=200

Check s3.provider, credentials, endpoint, bucket access, and RustFS readiness.

15.11 Grafana Issues

Grafana is externally reachable only when:

  • observability.mode=lgtm

  • ingress.grafana.enabled=true

Check:

Kopieren
kubectl -n ix25 get deployment ix25-lgtm
kubectl -n ix25 get ingressroutes.traefik.io

After restore, verify core dependencies before judging the application:

  • PostgreSQL

  • Vault

  • Keycloak

  • RustFS or external storage

  • NATS

  • IX25 application pods

Review restore warnings:

Kopieren
velero restore describe <restore-name> --details

15.13 Component Verification Commands

Kopieren
kubectl -n ix25 logs deployment/ix25-studio --tail=200
kubectl -n ix25 logs deployment/ix25-data-builder --tail=200
kubectl -n ix25 logs deployment/ix25-process-builder --tail=200
kubectl -n ix25 logs deployment/ix25-file-storage --tail=200
kubectl -n ix25 logs deployment/ix25-assistant --tail=200

Adjust names if the release name is not ix25.

15.14 Inspecting Rendered Manifests

Use rendered manifests when runtime symptoms do not explain the issue:

Kopieren
helm get manifest ix25 -n ix25
helm template ix25 ./ix25 \
  --namespace ix25 \
  -f ./values.customer.yaml

This helps identify wrong Secret names, missing environment variables, unexpected enabled flags, or missing routes.

15.15 When to Restore Instead of Troubleshoot Further

Prefer rollback or restore when:

  • a recent upgrade caused the issue

  • PostgreSQL corruption is suspected

  • Vault recovery material is missing

  • critical Secrets were overwritten

  • downtime risk is increasing